package com.kx.user.client;

import com.kx.base.dto.sms.SmsDTO;
import com.kx.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用短信子服务的工具类
 * @Author Sun
 * @Date 2021/7/19 21:27
 */
@FeignClient(value = "sms-service")
public interface SmsClient {

    @PostMapping("kx/sms/send")
    R send(@RequestBody SmsDTO smsDTO);

    @PostMapping("kx/sms/check")
    R check(@RequestBody SmsDTO smsDTO);
}
